﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using HousingInfo.Library;


namespace Admin.Admin
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnlogin_Click(object sender, EventArgs e)
        {
          
            //string username = txtusername.Text;
            //string password = txtpassword.Text;
            
            //if(UserBO.CheckUserNameExist(username))
            //{
            //if (UserBO.CheckLogin(username, password))
            //    {
            //        Session["LOGIN"] = username;
            //        Session["ROLES"] = 1;
            //        Response.Redirect("News.aspx");

            //    }
            //    else
            //    {
            //        lblstatus.Text = "Mật khẩu sai!";
            //        txtusername.Text = "";
            //        txtpassword.Text = "";
            //    }
            //}
            //else
            //{
            //    lblstatus.Text = "Tài khoản không tồn tại!";
            //}
            
        }

        protected void btncancel_Click(object sender, EventArgs e)
        {
                //txtusername.Text = "";
                //txtpassword.Text = "";
            
        }


    }
}
